# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=gocabrito
pkgver=4.33ac59a
pkgrel=5
groups=('blackarch' 'blackarch-social')
pkgdesc='Super organized and flexible script for sending phishing campaigns.'
arch=('any')
url='https://github.com/KINGSABRI/goCabrito'
license=('MIT')
depends=('ruby' 'ruby-bundler' 'ruby-mail' 'ruby-json' 'ruby-sqlite3' 'sqlite3')
makedepends=('git')
source=("$pkgname::git+https://github.com/KINGSABRI/goCabrito.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 goCabrito.rb "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md

  cp -a * "$pkgdir/usr/share/$pkgname/"
}

